import request from "@/utils/request"
const BASE_URL = process.env.VUE_APP_BASE_URL

/**
 * 应用列表接口
 * @param {*} data
 *
 */
export function adminConfigsetIndexAPI(data) {
	return request({
		url: BASE_URL + "adminConfig/queryModuleSetting",
		method: "post",
		data: data
	})
}

/**
 * 应用状态改变
 * @param {*} data
 * id 应用ID
 * status 1开启 0关闭
 */
export function adminConfigsetUpdateAPI(data) {
	return request({
		url: BASE_URL + "adminConfig/setModuleSetting",
		method: "post",
		data: data,
		headers: {
			"Content-Type": "application/json;charset=UTF-8"
		}
	})
}

/**
 * 试用应用
 * @param {*}
 */
export function adminPayTryUseModuleListAPI(data) {
	return request({
		url: BASE_URL + "adminPay/tryUseModuleList ",
		method: "post",
		data: data,
		headers: {
			"Content-Type": "application/json;charset=UTF-8"
		}
	})
}
